
import { SiteStore } from '@/stores/site'

// let site = SiteStore(); 
 

const default_config = {
  timeout: 100000,
  //tokenname
  token_name: 'authorization',
  request_cache: false,
  //token前缀，注意最后有个空格，如不需要需设置空字符串
  token_prefix: 'Bearer ',
  url: "",
  api_url: '',

  prefix: import.meta.env.MODE === 'development' ? '/index.php/api' : '/index.php/api',
  // fullurl: function (webdo) {
  //   if (webdo.indexOf('http') === 0) {
  //     return webdo
  //   }
  //   if (webdo.indexOf('/') === 0) {
  //     return `${this.api_url}${webdo}`
  //   }

  //   var url = `${this.api_url}${this.prefix}/${site.ident}/weapp/${site.aid}/${webdo}`
  //   return url
  // }
}
import my_config from './myConfig'
Object.assign(default_config, my_config)
export default default_config